<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>08_颜色属性-hex-hexa</title>
        <style>
            #d1 {
                width: 100px;
                height: 100px;
                /* 红色 */
                background-color: #ff0000;
                /* 绿色 */
                background-color: #00ff00;
                /* 蓝色 */
                background-color: #0000ff;

                background-color: #000000;

                background-color: #ffffff;

                background-color: #0f0;

                background-color: #ff000088;

                background-color: #CCE8FF;

            }
        </style>
    </head>
    <body>
        <div id="d1"></div>
    </body>
</html>